<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%@ include file="/WEB-INF/layouts/base.jsp"%>
<!DOCTYPE HTML>
<html>
  <head>
    <title>产品分类列表</title>
	<link rel="stylesheet" href="${ctxsta}/admin/main/css/style.css" />
	<link rel="stylesheet" href="${ctxsta}/common/icheck/flat/green.css" />
  </head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
	<form id="form" class="form-horizontal">
  	<input type="hidden" name = "categoryId" value="${oScategory.categoryId}">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>产品分类信息</h5>
                <div class="ibox-tools">
                    <a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                    <a class="close-link"><i class="fa fa-times"></i></a>
                </div>
            </div>
            <div class="ibox-content">
            
	            <div class="form-group m-t">
	              <label class="col-sm-2 control-label">父分类:</label>
	              <div class="col-sm-4">
	                <select class="form-control" name="parentId">
						<c:forEach items="${category}" var="category">
							<option value="${category.categoryId}" >${category.name}</option>
						</c:forEach>
					</select>
	              </div>
	              <label class="col-sm-2 control-label">名称：</label>
	              <div class="col-sm-4">
	                <input type="text" maxlength="18" class="form-control" name="name" value="${oScategory.name}">
	              </div>
	            </div>
	            <div class="form-group m-t">
	              <label class="col-sm-2 control-label">排序:</label>
	              <div class="col-sm-4">
	                <input type="text" maxlength="10" class="form-control" name="sort" value="${oScategory.sort}">
	              </div>
	              <label class="col-sm-2 control-label">目录类型:</label>
	              <div class="col-sm-4">
	                <input type="text" maxlength="18" class="form-control" name="type" value="${oScategory.type}">
	              </div>
	            </div>
	          
	            <div class="hr-line-dashed"></div>
	            <div class="form-group">
	              <label class="col-sm-2 control-label">状态:</label>
	              <div class="col-sm-4">
	                <label class="radio-inline add-radio"><input type="radio" name="status" value="1" checked="checked">&nbsp;是</label>
	                <label class="radio-inline add-radio"><input type="radio" name="status" value="0">&nbsp;否</label>
	              </div>
	              <label class="col-sm-2 control-label">导航条上显示:</label>
	              <div class="col-sm-4">
	                <label class="radio-inline add-radio"><input type="radio"  name="showInNav" value="0">&nbsp;新增</label>
	                <label class="radio-inline add-radio"><input type="radio" name="showInNav" value="1" checked="checked">&nbsp;上架</label>
	              </div>
	            </div>
	            <div class="form-group m-t">
	              <label class="col-sm-2 control-label">主产品区显示:</label>
	              <div class="col-sm-4">
	                <label class="radio-inline add-radio"><input type="radio" name="showInIndex" value="1" checked="checked">&nbsp;是</label>
	                <label class="radio-inline add-radio"><input type="radio" name="showInIndex" value="0">&nbsp;否</label>
	              </div>
	            </div>
	            <div class="hr-line-dashed"></div>
	            <div class="form-group">
	              <label class="col-sm-2 control-label">页面标题:</label>
	              <div class="col-sm-4">
	                <input type="text" class="form-control" name="pageTitle" value="${oScategory.pageTitle}">
	              </div>
	              <label class="col-sm-2 control-label">页面描述:</label>
	              <div class="col-sm-4">
	                <input type="text" maxlength="11" class="form-control" name="pageDescription" value="${oScategory.pageDescription}">
	              </div>
	            </div>
	            <div class="hr-line-dashed"></div>
	            <div class="form-group">
	              <label class="col-sm-2 control-label">页面关键词:</label>
	              <div class="col-sm-4">
	                <input type="text" class="form-control" name="pageKeyword" value="${oScategory.pageKeyword}">
	              </div>
	            </div>
	            <div class="hr-line-dashed"></div>
	            <div class="form-group">
	              <label class="col-sm-2 control-label">备注:</label>
	              <div class="col-sm-10">
	                <textarea class="form-control" rows="2" name="remarks" placeholder="请输入消息..." style="margin: 0px -17.675px 0px 0px; height: 50px; width: 100%;">${oScategory.remarks}</textarea>
	              </div>
	            </div>
	         	<div class="hr-line-dashed"></div>
	            <div class="form-group">
	              <div class="col-sm-4 col-sm-offset-4 add-submit">
	                <input type="hidden" class="form-control" name="userId" value="${user.userId}">
	                <button class="btn btn-primary" type="submit" id="submit">提交</button>
	              </div>
	            </div>
	            
            </div>
        </div>
        
        </form>
    </div>
    <myfooter>
      <!-- iCheck --> 
	  <script src="${ctxsta}/common/icheck/icheck.min.js"></script> 
	  <!-- bootstrapvalidator-master前端验证框架 --> 
	  <script src="${ctxsta}/common/bootstrapvalidator-master/js/bootstrapValidator.min.js"></script> 
	  <!-- 自定义js --> 
	  <script src="${ctxsta}/goods/main/js/goods_classify_set_category.js"></script> 
    </myfooter>
</body>
</html>